package com.acme.task2;

public class GCTest {

	public static void main(String[] args) {
		//modify numberOfIterations to check that GC is called
		int numberOfIterations = 1000000;
		//array to store references at Foo Objects
		Foo[] f = new Foo[numberOfIterations];
		//cycle to create Foo Objects
		for (int i = 0; i < numberOfIterations; i++) {
			System.out.println(i);
			f[i] = new Foo(i);
		}
	}
}
